﻿package hapi.ui;

import hapi.event.Notifier;

typedef NumericValueChangeEvent = { > UserInterfaceEvent<NumericValueHolder>, 
	var beforeChange:Float;
	var afterChange:Float;
};

interface NumericValueHolder {
	
	public var onChange(default, null):hapi.event.Notifier<NumericValueChangeEvent>;
	public function change(newValue:Float):Float;
	public function increase(delta:Float):Float;
	
}